class RecordListModel {
  bool? success;
  int? code;
  String? message;
  RecordResultModel? data;

  RecordListModel({this.success, this.code, this.message, this.data});

  RecordListModel.fromJson(Map<String, dynamic> json) {
    success = json['success'];
    code = json['code'];
    message = json['message'];
    data = json['data'] != null ? RecordResultModel.fromJson(json['data']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['success'] = success;
    data['code'] = code;
    data['message'] = message;
    if (this.data != null) {
      data['data'] = this.data!.toJson();
    }
    return data;
  }
}

class RecordResultModel {
  List<RecordItemModel>? list;
  int? total;
  int? page;
  int? size;
  int? totalPage;

  RecordResultModel({this.list, this.total, this.page, this.size, this.totalPage});

  RecordResultModel.fromJson(Map<String, dynamic> json) {
    if (json['list'] != null) {
      list = <RecordItemModel>[];
      json['list'].forEach((v) {
        list!.add(RecordItemModel.fromJson(v));
      });
    }
    total = json['total'];
    page = json['page'];
    size = json['size'];
    totalPage = json['totalPage'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (list != null) {
      data['list'] = list!.map((v) => v.toJson()).toList();
    }
    data['total'] = total;
    data['page'] = page;
    data['size'] = size;
    data['totalPage'] = totalPage;
    return data;
  }
}

class RecordItemModel {
  int? id;
  String? createTime;
  String? spaceName;
  String? deg;
  int? userId;
  String? sanhe1;
  String? liuhe1;
  String? caiwei1;
  String? sanhe2;
  String? liuhe2;
  String? caiwei2;
  String? type;
  String? birthday;
  String? sex;

  RecordItemModel(
      {this.id,
        this.createTime,
        this.spaceName,
        this.deg,
        this.userId,
        this.sanhe1,
        this.liuhe1,
        this.caiwei1,
        this.sanhe2,
        this.liuhe2,
        this.caiwei2,
        this.type,
        this.birthday,
        this.sex});

  RecordItemModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    createTime = json['createTime'];
    spaceName = json['spaceName'];
    deg = json['deg'];
    userId = json['userId'];
    sanhe1 = json['sanhe1'];
    liuhe1 = json['liuhe1'];
    caiwei1 = json['caiwei1'];
    sanhe2 = json['sanhe2'];
    liuhe2 = json['liuhe2'];
    caiwei2 = json['caiwei2'];
    type = json['type'];
    birthday = json['birthday'];
    sex = json['sex'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['id'] = id;
    data['createTime'] = createTime;
    data['spaceName'] = spaceName;
    data['deg'] = deg;
    data['userId'] = userId;
    data['sanhe1'] = sanhe1;
    data['liuhe1'] = liuhe1;
    data['caiwei1'] = caiwei1;
    data['sanhe2'] = sanhe2;
    data['liuhe2'] = liuhe2;
    data['caiwei2'] = caiwei2;
    data['type'] = type;
    data['birthday'] = birthday;
    data['sex'] = sex;
    return data;
  }
}
